package com.community.shop.entity.vo;

import lombok.Data;

import java.util.List;

/**
 * 地区vo实体类
 */
@Data
public class AddressVo {

    /**
     * 唯一键
     */
    private String code;
    /**
     * 名称
     */
    private String name;
    /**
     * 市
     */
    private List<AddressSecondVo> pchilds;
    /**
     * 二级地区
     */
    private List<AddressVo> ochids;
    /**
     * 父级区域code
     */
    private String pid;

    public AddressVo() {
    }

    public AddressVo(String code, String name, List<AddressSecondVo> pchilds, String pid) {
        this.code = code;
        this.name = name;
        this.pchilds = pchilds;
        this.pid = pid;
    }
}
